package com.neuedu.servletobj.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class HelloController {


    /**
     * http://127.0.0.1:8080/hello
     * http://localhost:8080/hello
     * @return
     */
    @RequestMapping("/hello")
    String hello(HttpServletRequest request){

        return "hello welcome ";
    }

}
